package com.example.plat.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.plat.enity.Comment;
import com.example.plat.exception.CommentException;
import org.springframework.stereotype.Service;

import java.util.List;


public interface CommentService {

    //获取活动的所有评论
    IPage<Comment> getComment(Long actId, Integer pageNum, Integer pageSize);

    //发布评论
    Comment createComment(Comment comment)throws CommentException;

    //删除评论
    void deleteComment(Long commentId)throws CommentException;
}
